package ch.ethz.fcl.metrobuzz.spatialindex;

public class SpatialIndexFactory {
	public static ISpatialIndex newInstance(String id){
		ISpatialIndex si = null;
		String classname = "ch.ethz.fcl.metrobuzz.spatialindex."+id;
		try{
			si = (ISpatialIndex)Class.forName(classname).newInstance();
		}
		catch(Exception e){
			e.printStackTrace();
		}
		return si;
	}
}
